{config_load file="lang/$language/lang_$language.conf" section="checkout"}
<h1>{#heading_checkout#}</h1>
{if $error!=''}
	<div class="headerError">{$error}</div>
{/if}
{if $CUSTOMERS_IP!=''}
	<strong>{#text_ip#}</strong> <span class="inputRequirement"><strong>{$CUSTOMERS_IP}</strong></span>
{/if}
<div class="checkout_body ui-shadow" data-role="collapsible-set" data-theme="c" data-content-theme="d">
	<div data-role="collapsible" data-collapsed="false" data-theme="e" data-content-theme="c">
		<h3>{$TEXT_CHECKOUT_STEP_ONE}</h3>
		<p>
			<div class="ckeckout_products">
				<div class="checkout_title" onclick="slideInOrOut('products')">
					<strong>{#title_products#}</strong> (<span id="checkout_products_howmuch">{$PRODUCTS_HOW_MUCH}</span>) 
				</div>
			    <div class="checkout_content{$SHOW_STAT_PRODUCTS}" id="chkt_products">
			        <div id="chkt_products_list">{$PRODUCTS_BLOCK}</div>
			        <div class="checkout_button"></div>
				</div>
			</div>
			<div class="checkout_total ui-body ui-body-d ui-corner-all ar" id="checkout_total">{$ORDER_TOTAL}</div>
			{if $module_gift}<div id="payment_gift">{$module_gift}</div>{/if}
		</p>
	</div>
	
	<div data-role="collapsible" data-theme="e" data-content-theme="c">
		<h3 id="acc_shipping">{$TEXT_CHECKOUT_STEP_TWO}</h3>
		<p>
	    	<div data-role="collapsible"{if $SHOW_STAT_SHIPPING_MODULES != ' dn'} data-collapsed="false"{/if}>
				<h3>{#title_shipping_modules#}</h3>
		        <p class="checkout_content" id="chkt_shipping_modules">
		        	<div id="not_virtual_modules{if $VIRTUAL == 1 || $FREE_SHIPPING == 1} dn{/if}">
			        	{$FORM_ACTION_SHIPPING_MODULES}
				            <div id="shippings">
				            	{$SHIPPING_BLOCK}
				            </div>
				            {if $NO_SHIPPINGS == 1}
					            <div>
					            	{#text_no_shippings#}
					            </div>
				            {/if}
				            <div class="inputRequirement left_space dn" id="shipping_module_error">&nbsp;</div>
			            {$FORM_END}
		            </div>
		            <div id="virtual_modules" class="virtual{if $VIRTUAL != 1} dn{/if}">{$TEXT_VIRTUAL}</div>
		            <div id="free_shipping_modules" class="virtual{if $FREE_SHIPPING != 1} dn{/if}">{$FREE_SHIPPING_DESCRIPTION}</div>
		        </p>
		    </div>
			<div data-role="collapsible"{if $SHOW_STAT_SHIPPING_ADDRESS != ' dn'} data-collapsed="false"{/if}>
				<h3>{#title_shipping_address#}</h3> 
		        <p class="checkout_content" id="chkt_shipping_address">
		        	<div id="not_virtual_address"{if $VIRTUAL == 1} class="dn"{/if}>
		                <div id="shipping_address">{$SHIPPING_ADDRESS_LABEL}</div>
		                <div id="shipping_address_select" class="dn">
			                <strong>{#address_old#}</strong><br />
			                <span id="dyn_shipping_address"></span><br /><br />
			                {if $ADDRESS_NEW_POSSIBLE == 1}
				                {$FORM_ACTION_SHIPPING_ADDRESS}
				                {$MODULE_new_address}<br />
				                <span id="shipping_address_error" class="inputRequirement"></span>
				                {$FORM_END}
			                {else}
			                	{#address_no_more#}
			                {/if}
		                </div>
		                <div id="shipping_address_button_edit" class="checkout_button">{$BUTTON_EDIT_SHIPPING_ADDRESS}</div>
		                <div id="shipping_address_button_save" class="checkout_button dn">{$BUTTON_BACK_SHIPPING_ADDRESS|replace:'css_img_button"':'css_img_button" data-role="button" data-icon="arrow-l" data-mini="true"'}{if $ADDRESS_NEW_POSSIBLE == 1} {$BUTTON_SAVE_SHIPPING_ADDRESS}{/if}</div>
		            </div>
		            <div id="virtual_address" class="virtual{if $VIRTUAL != 1} dn{/if}">{$TEXT_VIRTUAL}</div>
		        </p>
		    </div> 
		</p>
	</div>
	<div data-role="collapsible" data-theme="e" data-content-theme="c">
		<h3 id="acc_payment">{$TEXT_CHECKOUT_STEP_THREE}</h3>
		<p>
			<div data-role="collapsible"{if $SHOW_STAT_PAYMENT_MODULES_SYMBOL != ' dn'} data-collapsed="false"{/if}>
		    	<h3>{#title_payment_modules#}</h3>
		        <p>
	                <div id="payment_modules{if $GV_COVER=='true'} dn{/if}">
		                {$FORM_ACTION_PAYMENT_MODULES}
			                <div id="payments">
			                	{$PAYMENT_BLOCK}
			                </div>
			                {if $NO_PAYMENTS == 1}
				                <div>
				                	{#text_no_payments#}
				                </div>
			                {/if}
			                {if $BUTTON_SAVE_PAYMENT_MODULE}
			                	<div class="right h30">{$BUTTON_SAVE_PAYMENT_MODULE}</div><div class="clearfix"></div>
			                {/if}
			                <div class="inputRequirement left_space dn" id="payment_module_error">&nbsp;</div>
	                	{$FORM_END}
	                </div>
	                <div id="payment_gccover" class="virtual{if $GV_COVER!='true'} dn{/if}">{#text_gccover#}</div>
		        </p>
		    </div>
		    <div data-role="collapsible"{if $SHOW_STAT_PAYMENT_ADDRESS != ' dn'} data-collapsed="false"{/if}>
		    	<h3>{#title_payment_address#}</h3>
		        <p>
		        	<div id="payment_address">{$PAYMENT_ADDRESS_LABEL}</div>
		            <div id="payment_address_select" class="dn">
			            <strong>{#address_old#}</strong><br />
			            <span id="dyn_payment_address"></span><br /><br />
			            {if $ADDRESS_NEW_POSSIBLE == 1}
				            {$FORM_ACTION_PAYMENT_ADDRESS}
				            {$MODULE_new_address}<br />
				            <span id="payment_address_error" class="inputRequirement"></span>
				            {$FORM_END}
			            {else}
			            	{#address_no_more#}
			            {/if}
		            </div>
		            <div id="payment_address_button_edit" class="checkout_button">{$BUTTON_EDIT_PAYMENT_ADDRESS|replace:'css_img_button"':'css_img_button" data-role="button" data-icon="arrow-l" data-mini="true"'}</div>
		            <div id="payment_address_button_save" class="checkout_button dn">{$BUTTON_BACK_PAYMENT_ADDRESS}{if $ADDRESS_NEW_POSSIBLE == 1} {$BUTTON_SAVE_PAYMENT_ADDRESS}{/if}</div>
		        </p>
		    </div>
		</p>
	</div>

	<div data-role="collapsible" data-theme="e" data-content-theme="c">
		<h3 id="acc_confirm">{$TEXT_CHECKOUT_STEP_FOUR}</h3>
		<p>
			{$FORM_ACTION}
			<div data-role="collapsible"{if $SHOW_STAT_COMMENTS != ' dn'} data-collapsed="false"{/if}>
				<h3>{#title_comments#}</h3>
			    <p>{$COMMENTS}</p>
			</div><br />
			
			{if $AGB_stat == 1}
				<div data-role="collapsible"{if $SHOW_STAT_AGB != ' dn'} data-collapsed="false"{/if}>
					<h3>{#title_agb#}</h3>
					<p>{$AGB}</p>
				</div>
				{$AGB_checkbox|replace:'name="conditions"':'name="conditions" id="conditions_cb"'} <label for="conditions_cb">{#text_accept_agb#}</label>
				<div class="checkout_spacer">&nbsp;</div>
			{/if}
			{if $REVOCATION_stat == 1 and $REVOCATION}
				<div data-role="collapsible"{if $SHOW_STAT_REVOCATION != ' dn'} data-collapsed="false"{/if}>
					<h3>{#title_revocation#}</h3>
					<p>{$REVOCATION}</p>
				</div>
				{$REVOCATION_checkbox|replace:'name="revocation"':'name="revocation" id="revocation_cb"'} <label for="revocation_cb">{#text_accept_revocation#}</label>
				<div class="checkout_spacer">&nbsp;</div>
			{/if}
			{if $DSG_stat == 1}
				<div data-role="collapsible"{if $SHOW_STAT_DSG != ' dn'} data-collapsed="false"{/if}>
					<h3>{#title_dsg#}</h3>
					<p>{$DSG}</p>
				</div>
				{$DSG_checkbox|replace:'name="dsg"':'name="dsg" id="dsg_cb"'} <label for="dsg_cb">{#text_accept_dsg#}</label>
				<div class="checkout_spacer">&nbsp;</div>
			{/if}
			<div class="checkout_spacer dn" id="checkout_hiddens">{$HIDDEN_PAYMENT}</div>
			<div class="checkout_button">{$HIDDEN_XAJAX}{$BUTTON_ORDER|replace:'css_img_button"':'css_img_button" data-role="button" data-icon="check" data-theme="b" data-iconpos="right"'}</div>
			{$FORM_END}
		</p>
	</div>
</div>
<div class="ui-block-a">{$BUTTON_ORDER_BACK|replace:'css_img_button"':'css_img_button" data-role="button" data-icon="arrow-l" data-mini="true"'}</div>